import request from "../common/request.js"
// upload
export function upload (data) {
  return request({
    url: '/share/upload',
    method: 'post',
    data
  })
}

export function agreement (data) {
  return request({
    url: '/share/agreement',
    method: 'post',
    data
  })
}

export function problem (data) {
  return request({
    url: '/share/faq',
    method: 'post',
    data
  })
}

export function checkToken (data) {
  return request({
    url: '/token/check',
    method: 'post',
    data
  })
}

export function refreshToken (data) {
  return request({
    url: '/token/refresh',
    method: 'post',
    data
  })
}

export function inviteRule (data) {
  return request({
    url: '/invite/rule',
    method: 'post',
    data
  })
}



export function versions (data) {
  return request({
    url: '/versions/ver',
    // url: '/versions/versions',
    method: 'post',
    data
  })
}


// 扫码开门
export function qrcode (data) {
  return request({
    url: '/vg/qrcode',
    method: 'post',
    data
  })
}